package com.seafood.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 文件上传记录DTO
 */
@Data
public class FileUploadDTO {
    
    private Long id;
    
    @NotBlank(message = "原始文件名不能为空")
    private String originalFilename;
    
    private String storedFilename;
    
    private String filePath;
    
    @NotBlank(message = "文件URL不能为空")
    private String fileUrl;
    
    private Long fileSize;
    
    private String contentType;
    
    @NotBlank(message = "文件类型不能为空")
    private String fileType;
    
    @NotBlank(message = "业务类型不能为空")
    private String businessType;
    
    private Long businessId;
    
    private Long uploaderId;
    
    private String uploaderName;
    
    private String fileMd5;
    
    private String thumbnailUrl;
    
    private Boolean isPublic;
    
    private Boolean isDeleted;
    
    private Long downloadCount;
    
    private String description;
    
    private String tags;
    
    private String createdAt;
    
    private String updatedAt;
}